<?php
use \app\services\AdminService;

$adminService = new AdminService();
$userId       = $adminService->getLoginUserIdFromSession();
$userRealName = $adminService->getLoginRealNameFromSession();
$userName     = $adminService->getLoginUserNameFromSession();
?>
<div class="row border-bottom">
	<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
		<ul class="nav navbar-top-links navbar-right">
			<span class="loginname">
			欢迎您，
			<span>
			<a href="/admin/admin/usercenter"> <?php echo $userRealName ? $userRealName : $userName;?> &nbsp;个人中心</a>
			</span>
			</span>
			<a class="logout" href="/admin/public/logout">[退出]</a>
			<span>&nbsp;</span>
			<li class="dropdown">
				<a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
					<i class="fa fa-bell"></i> <span class="label label-primary">0</span>
				</a>
				<ul class="dropdown-menu dropdown-alerts">
					<li>
						<a href="mailbox.html">
							<div>
								<i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
								<span class="pull-right text-muted small">4分钟前</span>
							</div>
						</a>
					</li>
					<li class="divider"></li>
					<li>
						<a href="profile.html">
							<div>
								<i class="fa fa-qq fa-fw"></i> 3条新回复
								<span class="pull-right text-muted small">12分钟钱</span>
							</div>
						</a>
					</li>
					<li class="divider"></li>
					<li>
						<div class="text-center link-block">
							<a class="J_menuItem" href="notifications.html">
								<strong>查看所有 </strong>
								<i class="fa fa-angle-right"></i>
							</a>
						</div>
					</li>
				</ul>
			</li>
		</ul>
	</nav>
</div>
